using System.Collections.Generic;
using UnityEngine;

public class InGameTutorialBtn : InGameTutorialObject
{
	public bool waitDisable;

	public static List<string> nameButton = new List<string>();

	private bool nextStep;

	private static InGameTutorialBtn button;

	public override bool OnStepStart(string name)
	{
		if (base.OnStepStart(name))
		{
			if (base.gameObject.GetActive())
			{
				GetComponent<Collider>().enabled = true;
			}
			return true;
		}
		return false;
	}

	public void OnClick()
	{
		if (waitDisable)
		{
			if (InGameTutorialStepOnDisable.instance != null)
			{
				InGameTutorialStepOnDisable.instance.pressButton = this;
			}
		}
		else
		{
			Use();
		}
	}
}
